package lab03.Test05;

import java.io.*;

/**
 * Created by lenovo on 2017/12/12.
 */
public class test {
    public static void main(String[] args) {
        //5、	将字符串加密后，通过字符输出流写入文件，然后读取该文件并解密。
        // 加密算法为：将原有字符的 ASCII码加1，如'A'字符的 ASCII 码为65，
        // 加密后其 ASCII 码变成66。"	Hello"加密后的字符串为"Ifmmp"。
        String path = "D:/book.txt";
        BufferedReader reader = null;
        BufferedWriter writer = null;
        try {
            reader = new BufferedReader(new FileReader(path));
            writer = new BufferedWriter(new FileWriter(path));


        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

}
